import torch.nn as nn
import torch

class DummyMADTActor(nn.Module):
    def __init__(self, input_dim=120, output_dim=12):  # 根据实际输入输出修改
        super().__init__()
        self.model = nn.Sequential(
            nn.Linear(input_dim, 128),
            nn.ReLU(),
            nn.Linear(128, output_dim)
        )

    def forward(self, obs):
        return self.model(obs)

def load_actor_model(path):
    model = DummyMADTActor()
    model.load_state_dict(torch.load(path, map_location=torch.device('cpu')))
    model.eval()
    return model
